<?php

namespace common\models;


use yii\db\ActiveRecord;

class Service extends ActiveRecord
{
    public static function tableName()
    {
        return 'service';
    }

    public function rules(){
        return [
            [['id','order_id','user_id','shop_id','create_time'],'integer'],
            [['order_money','service_money'],'double'],

        ];

    }

    public function attributeLabels()
    {
        return [
            'id' =>'id',
            'order_id' => 'order_id',
            'user_id'=>'user_id',
            'shop_id'=>'shop_id',
            'order_money'=>'订单金额',
            'service_money' =>'服务费',
            'create_time' =>'创建时间'

        ];
    }

}